<template>
  <div></div>
</template>

<script>
export default {
  data() {
    return {
      key: null,
    };
  },
  methods: {
    getcodeone() {
      this.axios.get("login/qr/key").then(res => {
        console.log(res);
        this.key = res.data.data.unikey;
      });
    },
    getcodetwo() {
      this.axios.get(`login/qr/create?key=${this.key}`).then(res => {
        console.log(res);
      });
    },
    getcodethree() {
      this.axios.get(`login/qr/check?key=${this.key}`).then(res => {
        console.log(res);
      });
    },
  },

  mounted() {
    this.getcodeone();
    this.getcodetwo();
    this.getcodethree();
  },
};
</script>

<style lang="scss" scoped></style>
